const routes = [
    //整个页面切换属于一级路由
    {
      path: '/home',
      name: 'home',
      //普通加载方式
      component: () => import('../views/Btn.vue'),
      children:[
        {
            path:'/home/index',
            name:'index',
            component:()=>import('../views/Btn/Elm.vue')
        },
        {
            path:'/home/bbt',
            name:'bbt',
            component:()=>import('../views/Btn/Bbtuan.vue')
        },
        {
            path:'/home/order',
            name:'order',
            component:()=>import('../views/Btn/Order.vue')
        },
        {
            path:'/home/mine',
            name:'mine',
            component:()=>import('../views/Btn/Mine.vue')
        },
        {
            path:'/',
            redirect:'/home/index'
        },
        {
          path:'*',
          component:()=>import('../assets/Notfound.vue')
        }
      ]
    },
    {
      path:'/',
      redirect:'/home'
    },
    {
      path:'*',
      component:()=>import('../assets/Notfound.vue')
    }
  ]
  export default routes